package com.gf.pokemon.dto;


public class VoteUserOptionStaticsDto implements Comparable<VoteUserOptionStaticsDto>{
	
	private Integer optionId;
	/**
	 * 统计显示名称
	 */
	private String showName = "";
	
	/**
	 * 统计显示数量
	 */
	private Integer staticsNum = 0;
	
	/**
	 * 备注统计(投票用户输入的数字统计)
	 */
	private Integer memo = 0 ;
	
	public void addStaticsNum(Integer num){
		staticsNum += num;
	}

	public void addMemo(Integer num){
		if(num!=null){
			setMemo(getMemo() + num);
		}
	}
	
	public String getShowName() {
		return showName;
	}

	public void setShowName(String showName) {
		this.showName = showName;
	}

	public Integer getStaticsNum() {
		return staticsNum;
	}

	public void setStaticsNum(Integer staticsNum) {
		this.staticsNum = staticsNum;
	}

	public Integer getMemo() {
		return memo;
	}

	public void setMemo(Integer memo) {
		this.memo = memo;
	}

	@Override
	public int compareTo(VoteUserOptionStaticsDto o) {
		if(optionId>o.getOptionId()){
			return 1;
		}
		return -1;
	}

	public Integer getOptionId() {
		return optionId;
	}

	public void setOptionId(Integer optionId) {
		this.optionId = optionId;
	}
}
